def fengqi_pai_shou(num):
    if num % 7 == 0 or '7' in str(num):
        return True
    else:
        return False

for i in range(1, 101):
    if fengqi_pai_shou(i):
        print("*", end=" ")
    else:
        print(i, end=" ")
